package demo1208.pm.example;

public class Cell {
    //行
    private int row;
    //列
    private int col;

    public Cell(int row, int col) {
        this.row = row;
        this.col = col;
    }

    public Cell() {
    }

    public int getRow() {
        return row;
    }

    public void setRow(int row) {
        this.row = row;
    }

    public int getCol() {
        return col;
    }

    public void setCol(int col) {
        this.col = col;
    }

    public void show() {
        System.out.println("坐标:(" + row + "," + col + ")");
    }
}
